package com.CyclicBarrier;

import java.util.concurrent.CyclicBarrier;

/**
 * Created by apple on 17/9/29.
 */
public class ApplicationStart {
    public static void main(String[] args) {
        int N = 4;
        CyclicBarrier cyc = new CyclicBarrier(N);

        for (int i = 0; i <N; i++) {
            new TaskThread(cyc).start();
        }
    }
}
